package com.mushuilingfeng.ddd.user.sdk.api;

import com.mushuilingfeng.ddd.user.sdk.modle.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 沐水淋风
 * @date 2024/10/13
 */
@FeignClient(name = "${app.service.user}")
@RequestMapping("/tokenApi")
public interface TokenApi {
    
    @PostMapping("/getUser")
    User getUser(@RequestBody String token);
    
}
